export interface IPlatform {
  id: number;
  name: string;
  url: string;
}

export enum EnTaskStatus {
  CREATED = "CREATED",
  RUNNING = "RUNNING",
  COMPLETE = "COMPLETE",
}
export interface IFormRef {
  onSubmit: () => void;
}
export enum EnRowAction {
  ADD,
  DELETE,
  START,
  STOP,
}

export interface IRowActionProps<TData> {
  action: EnRowAction;
  data: TData;
}
export type RowActionsHandler<TData> = (
  action: EnRowAction,
  data: TData,
) => void;

export type Task = {
  id: number;
  name: string;
  keyword:string;
  syncData: string;
  status: EnTaskStatus;
  syncStrategy:string;
};
